{% extends 'base_user.html' %}
{% load static %}

{% block title %}
    {{ block.super }}
    注册
{% endblock %}


{% block ext_js %}
    {{ block.super }}
    <script type="text/javascript" src="{% static 'axf/user/js/register.js' %}"></script>
    <script type="text/javascript" src="{% static 'axf/user/js/md5.js' %}"></script>
{% endblock %}


{% block content %}
    {{ block.super }}
    <div class="container">
        <form action="{% url 'axfuser:register' %}" method="post" name='myform' enctype="multipart/form-data" onsubmit="return validateForm()">
            {% csrf_token %}
            <div class="form-group">
                <label for="exampleInputName">用户名字</label>
                <input type="text" name="name" class="form-control" id="exampleInputName" placeholder="英文字母3到6个">
                <span id="nameinfo"></span>
            </div>
            <div class="form-group">
                <label for="exampleInputPassword1">密码</label>
                <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="请输入密码">
            </div>
            <div class="form-group">
                <label for="exampleInputPassword2">确认密码</label>
                <input type="password" name='password2' class="form-control" id="exampleInputPassword2" placeholder="请再次输入密码">
                <span id="passwordInfo"></span>
            </div>

            <div class="form-group">
                <label for="exampleInputEmail1">邮箱</label>
                <input type="email" name="email" class="form-control" id="exampleInputEmail1" placeholder="Email">
            </div>


            <div class="form-group">
                <label for="exampleInputFile">头像</label>
                <input type="file" name='icon' id="exampleInputFile">
            </div>

            <button type="submit" class="btn btn-success btn-block">Submit</button>
        </form>
    </div>
{% endblock %}